<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sec="http://www.springframework.org/security/tags"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:p="http://primefaces.org/ui">
<ui:composition>

	<div id="nav">
		<ul class="sf-menu dropdown">
			<li class="selected"><h:outputLink
					value="#{request.contextPath}/pages/index.xhtml">Home</h:outputLink></li>
			<li><a class="has_submenu" href="#">Users</a>
				<ul>
					<li><h:outputLink
							value="#{request.contextPath}/pages/secure/users.xhtml">Users list 
					</h:outputLink></li>
					<li><a href="#">A sub Link</a></li>
					<li><a href="#">Another link</a></li>
				</ul></li>
			<li><a class="has_submenu" href="#">Products</a>
				<ul>
					<li><a href="#">Product One</a></li>
					<li><a href="#">Product Two</a></li>
					<li><a href="#">Product Three</a></li>
				</ul></li>
			<li><a href="#">Solutions</a></li>
			<li><a href="#">Contact</a></li>
			<sec:authorize var="loggedIn" access="isAuthenticated()" />
			<c:choose>
				<c:when test="#{loggedIn}">
					<li><h:outputLink
							value="#{request.contextPath}/j_spring_security_logout">
							<h:outputText value="Kijeletkezés" />
						</h:outputLink></li>
				</c:when>
				<c:otherwise>
					<li><h:outputLink
							value="#{request.contextPath}/pages/login.xhtml">
							<h:outputText value="Bejelentkezés" />
						</h:outputLink></li>

					<li><h:outputLink
							value="#{request.contextPath}/pages/registration.xhtml">
							<h:outputText value="Regisztració" />
						</h:outputLink></li>
				</c:otherwise>
			</c:choose>



		</ul>
	</div>
</ui:composition>
</html>